# -*- coding: utf-8 -*-
"""
Created on 2023/08/24
@author: WuZhouHai
常量定义
"""

AttCombinationType_Equip = "equip"  # 装备
AttCombinationType_GuildSkill = "guildSkill"  # 公会技能
AttCombinationType_CyLevel = "cyLevel"  # 阶级
AttCombinationType_StrengthenSoul = "strengthenSoul"  # 强魂
AttCombinationType_GodBeast = "godBeast"  # 神兽
AttCombinationType_Wing = "wing"  # 翅膀

# 游戏功能定义 start
MAXLEVEL = 120  # 满级限制
MAXVIP = 15  # 最大VIP等级

SERVER_MAX_LEVEL = 120  # 服务器等级上限

FAST_FIGHT = 1  # 快速战斗
BOSS_FIGHT = 2  # 挑战BOSS
BUY_COIN = 3  # 购买金币
REFRESH_SHOP = 30  # 刷新商店
REFRESH_ARENASHOP = 31  # 刷新竞技商店
REFRESH_COMPOUNDSHOP = 32  # 刷新普通锻造商店
REFRESH_GODITEMSHOP = 33  # 刷新高级锻造商店
REFRESH_GUILDSHOP = 34  # 刷新公会商店
REFRESH_PETSHOP = 35  # 刷新元神商店
REFRESH_TOWERSHOP = 36  # 刷新爬塔商店
ARENA_DARE = 40  # 竞技场挑战
ARENA_BUYTIMES = 41  # 竞技场购买
WORLDBOSS_CHEER = 50  # 世界BOSS鼓舞
WORLDBOSS_REVIVE = 60  # 世界BOSS复活
TEAM_RESET = 70  # 组队战重置
TEAM_FIGHT = 71  # 组队战战斗
TOWER_RESET = 72  # 重置爬塔
TEAM_FIGHT_MAX = 73  # 组队战次数上限
WING_EAT_ITEM = 80  # 翅膀道具吞吃
WING_EAT_GOLD = 81  # 翅膀元宝吞吃
BEAST_EAT_ITEM = 90  # 神兽吞吃四神之力
BEAST_FAM_REFRESH = 91  # 秘境刷新
BEAST_FAM_SUMMON = 92  # 秘境召唤
BEAST_FAM_REFRESH_ONEKEY = 93  # 秘境一键刷新

BAPTIZE_EQUIP = 100  # 洗练
TRAIN_EQUIP = 101  # 装备培养
TRAIN_UPLEVEL_EQUIP = 102  # 装备培养升级
INHERIT_EQUIP = 103  # 装备强化传承
ENERGY_LOTTERY = 104  # 熔铸值抽奖
INHERIT_ALL = 105  # 一键传承
INHERIT_GOD = 106  # 神器传承
GOLD_SHOP_BUYITEM = 200  # 钻石商店
FIGHT_SCENE = 300  # 战斗场景
GUILD_DINNER = 400  # 公会宴会
GUILD_CREATE = 401  # 公会创建
EXTEND_PACKEAGE = 500  # 扩展背包
EXTEND_PET_CYLEVEL = 600  # 宠物升阶
EXTEND_PET_EXTRACT = 601  # 宠物抽取
MINER_EMPLOY = 650  # 矿工雇佣
MINER_CLEAR_TIME = 651  # 矿产时间

# 功能开放等级
SYSTEM_OPEN_FAST_BOSS = 4  # 扫荡BOSS
SYSTEM_OPEN_STRENG = 6  # 强化
SYSTEM_OPEN_MINE = 6  # 矿山
SYSTEM_OPEN_MINE_BOM = 10  # 炸矿
SYSTEM_OPEN_DAY_TASK = 14  # 日常任务
SYSTEM_OPEN_WISH = 21  # 装备祝福
SYSTEM_OPEN_FAST_FIGHT = 17  # 快速战斗
SYSTEM_OPEN_PET_CY = 18  # 元神升品
SYSTEM_OPEN_AREA = 19  # 竞技场
SYSTEM_OPEN_GUILD = 20  # 血盟
SYSTEM_OPEN_TOWER = 22  # 爬塔
SYSTEM_OPEN_WORLD_BOSS = 27  # 世界BOSS
SYSTEM_OPEN_LEVEL_WING = 34  # 翅膀
SYSTEM_OPEN_LEVEL_GODBEAST = 36  # 神兽/密镜
SYSTEM_OPEN_LEVEL_HLEPOUT = 45  # 助阵/情缘

SYSTEM_PET_FIGHT_ONE = 1  # 元神出战位置1
SYSTEM_PET_FIGHT_TWO = 15  # 元神出战位置2
SYSTEM_PET_FIGHT_THREE = 35  # 元神出战位置3

# 职业定义
PROFESSION_Z = 1  # 战士
PROFESSION_D = 2  # 道士
PROFESSION_F = 3  # 法师
# 游戏功能定义 end

# 技能定义 start
# ------------效果类型----------------
DEFINE_EFFECT_TYPE_HURT = 1  # 伤害
DEFINE_EFFECT_TYPE_PRODUCE_SP = 2  # 生成怒气
DEFINE_EFFECT_TYPE_REODUCE_SP = 3  # 减少怒气
DEFINE_EFFECT_TYPE_TREAT = 4  # 治疗
# ------------------------------------
# ------------效果数值类型------------
DEFINE_EFFECT_VALUE_TYPE_PERCENT = 1  # 百分比
DEFINE_EFFECT_VALUE_TYPE_FIXED_VALUE = 2  # 固定值
DEFINE_EFFECT_VALUE_TYPE_PERCENT_N = 3  # 当前百分比
DEFINE_EFFECT_VALUE_TYPE_PERCENT_ACK = 4  # 攻击力百分比
# ------------------------------------
# ------------伤害类型----------------
DEFINE_EFFECT_HURT_TYPE_NOMAL = 1  # 直接伤害
DEFINE_EFFECT_HURT_TYPE_DRAINS = 2  # 伤害吸血
DEFINE_EFFECT_HURT_TYPE_REGAIN_SP = 3  # 伤害回怒
DEFINE_EFFECT_HURT_TYPE_GET_SP = 4  # 伤害吸取怒气
DEFINE_EFFECT_HURT_TYPE_TREAT = 5  # 伤害治疗
# ------------------------------------
# ------------伤害数值类型------------
DEFINE_EFFECT_HURT_VALUE_TYPE_NORMAL = 0  # 攻击力
DEFINE_EFFECT_HURT_VALUE_TYPE_ATKPERCENT = 1  # 攻击力百分比
DEFINE_EFFECT_HURT_VALUE_TYPE_FIXED = 2  # 固定值
DEFINE_EFFECT_HURT_VALUE_TYPE_HP_PERCENT = 3  # 生命百分比
DEFINE_EFFECT_HURT_VALUE_TYPE_HP_PERCENT_N = 4  # 当前生命百分比
# ------------------------------------
# ------------伤害子数值类型----------
DEFINE_EFFECT_SUB_HURT_VALUE_TYPE_PERCENT = 1  # 伤害百分比
DEFINE_EFFECT_SUB_HURT_VALUE_TYPE_FIXED = 2  # 固定值
# ------------------------------------

# ------------BUFF主类型--------------
DEFINE_BUFF_MAIN_TYPE_BUFF = 1  # 增益
DEFINE_BUFF_MAIN_TYPE_DEBUFF = 2  # 减益
DEFINE_BUFF_MAIN_TYPE_CONTROL = 3  # 控制
# -----------------------------------
# ------------BUFF子类型-------------
DEFINE_BUFF_SUB_TYPE_ADD_ATT = 1  # 增加属性
DEFINE_BUFF_SUB_TYPE_REDUCE_ATT = 2  # 减少属性
DEFINE_BUFF_SUB_TYPE_RECOVER_HP = 3  # 恢复生命
DEFINE_BUFF_SUB_TYPE_REDUCE_HP = 4  # 减少生命
DEFINE_BUFF_SUB_TYPE_RECOVER_MP = 5  # 恢复怒气
DEFINE_BUFF_SUB_TYPE_REDUCE_MP = 6  # 减少怒气
DEFINE_BUFF_SUB_TYPE_VERTIGO = 7  # 眩晕
DEFINE_BUFF_SUB_TYPE_ATK_RECOVER_HP = 8  # 被击恢复生命
DEFINE_BUFF_SUB_TYPE_ATK_RECOVER_MP = 9  # 被击恢复怒气
DEFINE_BUFF_SUB_TYPE_ADD_ARMOR = 10  # 增加护甲
DEFINE_BUFF_SUB_TYPE_WEAKEN_RECOVER_HP = 11  # 削弱生命恢复
DEFINE_BUFF_SUB_TYPE_HRUT_ATK = 12  # 伤害反弹
DEFINE_BUFF_SUB_TYPE_RE_ATK = 13  # 反击
DEFINE_BUFF_SUB_TYPE_GOD = 14  # 无敌
# -----------------------------------
# ------------BUFF数值类型-------------
DEFINE_BUFF_VALUE_TYPE_PERCENT = 1  # 百分比
DEFINE_BUFF_VALUE_TYPE_FIXED = 2  # 固定值
DEFINE_BUFF_VALUE_TYPE_PERCENT_N = 3  # 当前百分比
DEFINE_BUFF_VALUE_TYPE_PERCENT_HURT = 4  # 伤害百分比
DEFINE_BUFF_VALUE_TYPE_HURT = 5  # 伤害
# -----------------------------------

MONSTER_DYNAMIC_START = 500000
# 技能定义 end
